<style type="text/css">
#msg{
	z-index: 100;
	color: #999 !important;	
	width: 100%;
	height: 50px;
	background: #F1F1F1;
	text-align: center;
}
.fly-list{
	height: 35px !important;
	line-height: 35px !important;
}
.layui-colla-content{
	background: #Fff !important;
}
.layui-colla-title a em{
	color: red;
}
</style>

<div class="main layui-clear">
  <div class="wrap">
    <div class="content" style="margin-right:0">
      <div id="msg" style="margin-top: 10px;">
	      <div class="">搜索结果</div>
	    </div>
	  <div class="layui-collapse" lay-filter="test">
	  <?php foreach ($main as $v) : ?>
	  <div class="layui-colla-item">
	    <h2 class="layui-colla-title">	
	    	<a href="{:U('home/discuss/index',array('qid'=>$v['qid']))}">
	        <?php echo $v['title']; ?>
	      </a>
	    </h2>
	    <div class="layui-colla-content layui-show">
	      <p><?php echo htmlspecialchars_decode($v['content']);?></p>
	    </div>
	  </div>
	  <ul class="fly-panel fly-list">
              <li class="fly-list-li">
                <p>
                  <span>
                    <?php echo Ctime($v['create_time']); ?>
                  </span>
                  <span class="fly-list-hint">
                    <i class="iconfont" title="回答">
                      &#xe60c;
                    </i>
                    <?php echo $v['answer_num']; ?>
                    <i class="iconfont" title="人气">
                      &#xe60b;
                    </i>
                    <?php echo $v['view_num']; ?>
                  </span>
                </p>
              </li>
	      </ul>
		 <?php endforeach; ?>
		</div>
    </div>
  </div>
</div>